package com.test.exceptions;

/**
 * RouteDataException
 * 
 * @author ezuccon
 * @category Exceptions
 * @version 1.0
 * @since 02/08/2011
 */
public class RouteDataException extends RuntimeException {
	/**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * DEFAULT_MESSAGE
	 */
	private static final String DEFAULT_MESSAGE = "RouteDataException";

	/**
	 * Message
	 */
	private String message;

	/**
	 * Constructor
	 */
	public RouteDataException() {
		super();
		this.message = DEFAULT_MESSAGE;
	}

	/**
	 * Constructor
	 * 
	 * @param arg0
	 * @param arg1
	 */
	public RouteDataException(String arg0, Throwable arg1) {
		super(arg0, arg1);
		this.message = arg0;
	}

	/**
	 * Constructor
	 * 
	 * @param arg0
	 */
	public RouteDataException(String arg0) {
		super(arg0);
		this.message = arg0;
	}

	/**
	 * Constructor
	 * 
	 * @param arg0
	 */
	public RouteDataException(Throwable arg0) {
		super(arg0);
		this.message = DEFAULT_MESSAGE;
	}

	/**
	 * @return the message
	 */
	public final String getMessage() {
		return message;
	}

	/**
	 * @param message
	 *            the message to set
	 */
	public final void setMessage(String messageValue) {
		this.message = messageValue;
	}
}
